package com.irdstudio.apicenter.console.service.appframe;

import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppFrameStyle;
import com.irdstudio.apicenter.console.dm.AppFrameStyleDao;

@Service(value = "appFrameStyleService")
public class AppFrameStyleService {
	@Autowired
	private AppFrameStyleDao appFrameStyleDao;

	/**
	 * 获取模块信息
	 * 
	 * @param id
	 * @param name
	 * @param pageNowe
	 * @param pageSiz
	 * @return
	 * @throws SQLException
	 * @throws ClassNotFoundException
	 */
	public AppFrameStyle queryAppFrameStyleDetail(String appid)
			throws SQLException, ClassNotFoundException {

		return appFrameStyleDao.queryWithKeys(appid);

	}

	public int updateByKeys(AppFrameStyle appFrameStyle) throws SQLException,
			ClassNotFoundException {

		return appFrameStyleDao.updateByKeys(appFrameStyle);

	}

	public int insertOne(AppFrameStyle appFrameStyle) throws SQLException,
			ClassNotFoundException {

		return appFrameStyleDao.insertOne(appFrameStyle);

	}

}
